/**
 * Copyright (c) 2024-2025 National Fundamental Software of China Co., Ltd.
 *
 * You should have find a copy of NFSChina License. If not, please contact us
 * by email <os_support@nfschina>
 *
**/

#pragma once
#include "ui_timezone.h"

#include <QWidget>
class Timezone : public QWidget, public Ui::timezone
{
    Q_OBJECT
public:
    explicit Timezone(QWidget *parent, bool haveTimedated);
    void load();
    void currentZone();
    QString selectedTimeZone() const;


Q_SIGNALS:
    void timeChanged(bool);

private Q_SLOTS:
    void configChanged();
private:
    bool m_haveTimedated;

private:
    QString m_initialTimezone;

public:
    bool hasTimezoneChanges() const;
};
